﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:Agnes.MyDocsLib"
                    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
                    xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
                    x:Name="MyDocsLibResource">
    <dxb:BarItemCollection x:Key="MyDocsLibBarItems">
        <dxb:BarButtonItem Command="local:NewSubCatalogCmd.Requery" Name="biNewSubCatalog" Content="新建目录" Glyph="..\Images\Folder.ico"/>
        <dxb:BarButtonItem Command="local:NewArticleCmd.Requery" Name="biNewDoc" Content="新建文章" Glyph="..\Images\NewDoc.ico" />
        <dxb:BarCheckItem  Name="biEditMode" Content="编辑模式" Glyph="..\Images\Delete.ico"  />
        <dxb:BarButtonItem Command="local:SaveDocCmd.Requery" Name="biSaveDoc" Content="保存文章" Glyph="..\Images\Save.ico" />
        <dxb:BarButtonItem Command="local:ImportCmd.Requery" Name="biImport" Content="导入" Glyph="..\Images\Import.ico" />
        <dxb:BarButtonItem Command="local:ExportCmd.Requery" Name="biExport" Content="导出" Glyph="..\Images\Export.ico" />
        
        <dxb:BarButtonItem KeyGesture="F2" Command="local:RenameCmd.Requery"
                           Name="biRename"
                           Content="重命名" Glyph="..\Images\Rename.ico"/>
        <dxb:BarButtonItem Command="local:DeleteCatalogCmd.Requery"
                           Name="biDelCatalog"
                           Content="删除目录" Glyph="..\Images\Delete.ico" />
        <dxb:BarButtonItem Command="local:DeleteArticleCmd.Requery"
                           Name="biDelArticle"
                           Content="删除文章" Glyph="..\Images\Delete.ico" />
        <dxb:BarButtonItem Name="biNewRssCatagory"
                           Content="新建分类" Glyph="..\Images\RssCatagory.ico" />
        <dxb:BarButtonItem Name="biNewRss"
                           Content="订阅"  Glyph="..\Images\NewRss.ico"/>
        <dxb:BarButtonItem Name="biRemoveRss"
                           Content="取消"  Glyph="..\Images\RemoveRss.ico"/>
        <dxb:BarButtonItem Name="biFavoriteRss"
                           Content="收藏夹"  Glyph="..\Images\Favorities.ico"/>
    </dxb:BarItemCollection>

    <dxr:RibbonPage x:Key="MyDocsLibRibbonPage" Caption="我的文档库">
        
        <dxr:RibbonPageGroup Caption="目录">
            <dxb:BarItemLink BarItemName="biNewSubCatalog" RibbonStyle="Large" />
            <dxb:BarItemLink BarItemName="biRename" RibbonStyle="Large" />
            <dxb:BarItemLink BarItemName="biDelCatalog" RibbonStyle="Large" />
        </dxr:RibbonPageGroup>
        
        <dxr:RibbonPageGroup Caption="文章操作">
            <dxb:BarItemLink BarItemName="biNewDoc" />
            <dxb:BarItemLink BarItemName="biDelArticle"  />
            <dxb:BarButtonItemLink BarItemName="biSaveDoc" />
        </dxr:RibbonPageGroup>

        <dxr:RibbonPageGroup Caption="功能">
            <dxb:BarItemLink BarItemName="biImport" RibbonStyle="Large" />
            <dxb:BarItemLink BarItemName="biExport" RibbonStyle="Large" />
        </dxr:RibbonPageGroup>
    </dxr:RibbonPage>
</ResourceDictionary>